import Vue from 'vue/dist/vue.js';
import 'mint-ui/lib/style.css';
import './lib/mui/dist/css/mui.min.css';
import './lib/mui/dist/css/icons-extra.css';
import app from './components/app.vue';


import router from './router.js';

import VueReource from 'vue-resource';
Vue.use(VueReource);
Vue.http.options.root = 'http://129.204.193.180:5000/';

// 处理时间字符串的插件
import moment from 'moment';
Vue.filter('dateFormat', function (date, parrent='YYYY年MM月DD日 HH:mm:ss') {
			return moment(date).format(parrent)
		});

import { Lazyload } from 'mint-ui';
Vue.use(Lazyload);

import VuePreview from 'vue2-preview'
Vue.use(VuePreview)

var vm = new Vue({
	el: '#app',
	data: {},
	methods: {},
	router,
	render: function (createElement) {
		return createElement(app);
	}
});